<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="com.demo.model.*;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单个宠物信息</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
	<!-- 顶部导航栏开始 -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#nav">
				<span class="sr-only">Toggle</span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#"> <img src="images/logo.gif"
				style="height: 50px" />
			</a>
		</div>
	</div>
	</nav>
	<!-- 顶部导航栏结束 -->
	<div style="height: 150px; width: 100%;"></div>

	<%
		Dog dog = (Dog) request.getAttribute("dog");
	%>
	<form action="userServlet" method="post">
        <input type="hidden" name="type" value="updDog"/>
		<input type="hidden" name="userId" value="<%=dog.getUser_id()%>" />
		<table border="1" align="center">
			<tr>
				<td>姓名</td>
				<td><input type="text" name="username"
					value="<%=dog.getUser_name()%>" /></td>
			</tr>
			<tr>
				<td>年龄</td>
				<td><input type="text" name="age" value="<%=dog.getAge()%>" />
				</td>
			</tr>
			<tr>
				<td>出生日期</td>
				<td><input type="text" name="birthday"
					value="<%=dog.getBirthday()%>" /></td>
			</tr>
			<tr>
				<td>宠物种类</td>
				<td><input type="text" name="type"
					value="<%=dog.getUser_name()%>" /></td>
			</tr>
			<tr>
				<td>颜色</td>
				<td><input type="text" name="color" value="<%=dog.getColor()%>" />
				</td>
			</tr>
			<tr>
				<td>图片</td>
				<td><input type="text" name="pic" value="<%=dog.getPic()%>" />
				</td>
			</tr>
			<tr>
				<td>体长</td>
				<td><input type="text" name="body_length"
					value="<%=dog.getBody_length()%>" /></td>
			</tr>
			<tr>
				<td>体重</td>
				<td><input type="text" name="body_weight"
					value="<%=dog.getBody_weight()%>" /></td>
			</tr>
			<tr>
				<td colspan="8"><input type="submit" value="修改" /></td>
			</tr>

		</table>
	</form>
</body>
</html>